package cn.wolfcode.shop.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;import java.util.HashMap;
import java.util.List;

@Getter@Setter
public class SkuProperty extends BaseDomain {

    private Long catalogId;

    private String name;

    private Integer sort;

    //list装属性值
    private List<SkuPropertyValue> skuPropertyValueList;

    public String getJsonData() {

        HashMap<String, Object> map = new HashMap();
        map.put("id", getId());
        map.put("catalogId", catalogId);
        map.put("name", name);
        map.put("sort", sort);

        return JSON.toJSONString(map);
    }
}